package com.mdd.front.service;

import com.mdd.common.core.AjaxResult;
import com.mdd.common.entity.user.UserGoods;
import com.mdd.front.validate.shop.ShopProductSearchValidate;
import com.mdd.front.vo.shop.ShopProductListedVo;
import com.mdd.front.vo.user.UserGoodsListedVo;

import java.util.List;

public interface IUserGoodsService {
    /**
     * 关注商品
     * @param userGoods
     * @return
     */
    AjaxResult<Object> focusGoods(UserGoods userGoods);

    /**
     * 取消关注
     * @param id 关注列表id
     * @return
     */
    AjaxResult<Object> cancellationFocus(Integer userId,Integer goodsId);

    /**
     * 查询用户关注列表
     * @param userId
     * @return
     */
    List<UserGoodsListedVo> list(Integer userId);

    /**
     * 是否关注
     * @param
     * @return
     */
    boolean isFocus(Integer userId,Integer goodsId);
}
